<template>
     <el-form :model="addRuleFrom" ref="addRuleFrom" label-width="100px">
            <el-form-item label="机构名称：">
                <el-input v-model="addRuleFrom.departName" autocomplete="off" readonly></el-input>
            </el-form-item>
            <el-form-item label="上级部门">
                <el-input v-model="parentTitle" disabled></el-input>
            </el-form-item>
            <el-form-item label="机构类型：">
                <el-radio-group v-model="addRuleFrom.orgCategory" disabled>
                    <el-radio label="1">公司</el-radio>
                    <el-radio label="2">部门</el-radio>
                    <el-radio label="3">岗位</el-radio>
                </el-radio-group>
            </el-form-item>
            <el-form-item label="电话：">
                <el-input v-model="addRuleFrom.mobile" readonly></el-input>
            </el-form-item>
            <el-form-item label="传真：">
                <el-input v-model="addRuleFrom.fax" readonly></el-input>
            </el-form-item>
            <el-form-item label="地址：">
                <el-input v-model="addRuleFrom.address" readonly></el-input>
            </el-form-item>
            <el-form-item label="排序：">
                <el-input-number v-model="addRuleFrom.departOrder" controls-position="right" :min="0" :max="10" style="border: 1px solid #e8e8e8" disabled></el-input-number>
            </el-form-item>
            <el-form-item label="备注：">
                <el-input type="textarea" v-model="addRuleFrom.memo" readonly></el-input>
            </el-form-item>
    </el-form>
</template>
<script>
export default{
    name:"departBasicList",
    data(){
        return{
            parentTitle:"无",
            // addRuleFrom: {
            //     departName: "",
            //     orgCategory: "",
            //     mobile: "",
            //     fax: '',
            //     address: "",
            //     departOrder: "0",
            //     memo: "",
            //     parentId:null
            // },// 表单初始状态数据
            addRuleFrom:{}
        }
    },
    methods:{
        // 获取部门基本信息
        getDepartList(From,parentName){
            this.addRuleFrom = From;
            if(parentName){
                this.parentTitle = parentName;
            }
        }
    },
    props:{
        // BasicData:{
        //     type:Object,
        //     default:()=>{
        //         return {};
        //     }
        // }
    }
}
</script>
<style lang="less" scoped>
/deep/ .el-input__inner{
    border: 1px solid #ffffff;
}
/deep/ .el-textarea__inner{
    border: 1px solid #ffffff;
}
</style>
